﻿<%@ Page Language="C#" %>
<%@ Import Namespace="Beeldbankmvc.Code" %>

<script type="text/javascript" src="<%=AppHelper.getContent("~/Scripts/SocialSharingSendEmail.js") %>"></script>

<!-- Share section -->
<section class="section">
    <div class="row">
        <div class="m-span6">
            <div class="panel info">
                <h2 class="panel-title">Deel deze pagina</h2>
                <% 
                    string cUrl = Request.Url.ToString();
                %>
                <ul class="icons">
                    <li>
                        <a href="http://www.facebook.com//sharer/sharer.php?u=<%= cUrl %>"><span class="icon-facebook" aria-hidden="true"></span>Deel op Facebook</a>
                    </li>
                    <li>
                        <a href="http://www.linkedin.com/shareArticle?mini=true&url=<%= cUrl %>"><span class="icon-linkedin" aria-hidden="true"></span>Deel op LinkedIn</a>
                    </li>
                    <li>
                        <a href="http://www.twitter.com/intent/tweet?url=<%= cUrl %>"><span class="icon-twitter" aria-hidden="true"></span>Deel op Twitter</a>
                    </li>
                    <li>
                        <a href="https://plus.google.com/share?url=<%= cUrl %>"><span class="icon-googleplus" aria-hidden="true"></span>Deel op Google+</a>
                    </li>
                </ul>
            </div>
        </div>
        <div class="m-span6">
            <div class="panel info">
                <h2 class="panel-title">Stuur door</h2>
                <div class="expandable">
                    <a href="#" class="expandable-toggle more more-toggle">Stuur door via e-mail</a>
                    <%--<form method="post" action="/_sentMail/SentTo" id="frmStuurDoor" class="expandable-body small">--%>
                    <form method="post" action="/API/SocialSharingSendEmail" id="frmStuurDoor" class="expandable-body small">
                        <div class="control-group-vertical">
                            <label for="share_naam" class="control-label accessibility">Uw naam*</label>
                            <div class="controls">
                                <input id="share_naam" name="share_naam" type="text" placeholder="Uw naam*" required="required" class="block">
                            </div>
                        </div>
                        <div class="control-group-vertical">
                            <label for="share_email" class="control-label accessibility">Uw e-mailadres*</label>
                            <div class="controls">
                                <input id="share_email" name="share_email" type="email" placeholder="Uw e-mailadres*" required="required" class="block">
                            </div>
                        </div>
                        <div class="control-group-vertical">
                            <label for="share_onaam" class="control-label accessibility">Naam ontvanger*</label>
                            <div class="controls">
                                <input id="share_onaam" name="share_onaam" type="text" placeholder="Naam ontvanger*" required="required" class="block">
                            </div>
                        </div>
                        <div class="control-group-vertical">
                            <label for="share_oemail" class="control-label accessibility">E-mailadres ontvanger*</label>
                            <div class="controls">
                                <input id="share_oemail" name="share_oemail" type="email" placeholder="E-mailadres ontvanger*" required="required" class="block">
                            </div>
                        </div>
                        <div class="control-group-vertical">
                            <div class="controls">
                                <input type="submit" value="Verzenden" class="btn primary">
                            </div>
                        </div>
                        <input name="share_link" name="share_link" type="hidden" value ="<%= Regex.Split(cUrl, @"\?resultType").First() %>"/>
                        <div class="help text-right">* is een verplicht veld</div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</section>